<?php

namespace app\admin\model;

use think\Model;

class Video extends Model
{
    // 表名
    protected $name = 'video';

    // 自动时间戳字段
    protected $autoWriteTimestamp = false;

    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

    public function vcate()
    {
        return $this->belongsTo(Vcate::class, 'vcate_id', 'id')->setEagerlyType(0);
    }
}


